package com.wulinbus.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wulinbus.dao.script.ScriptBannerDAO;
import com.wulinbus.model.ScriptBannerModel;
import com.wulinbus.service.ScriptBannerService;
@Service
public class ScriptBannerServiceImpl implements ScriptBannerService{
	@Resource
	private ScriptBannerDAO scriptBannerDAO;
	
	public ScriptBannerModel getById(Integer bid){
		return scriptBannerDAO.getById(bid);
	}
	public ScriptBannerModel getOne(){
		return scriptBannerDAO.getOne();
	}
	public List<ScriptBannerModel> getListLimit(Integer limit){
		return scriptBannerDAO.getListLimit(limit);
	}

	public List<ScriptBannerModel> getList(Integer start, Integer count){
		return scriptBannerDAO.getList(start,count);
	}
	
	public Integer getListCount(){
		return scriptBannerDAO.getListCount();
	}
	
	public Integer insert(ScriptBannerModel banner){
		return scriptBannerDAO.insert(banner);
	}

	public Integer update(ScriptBannerModel banner){
		return scriptBannerDAO.update(banner);
	}

	public Integer delete(Integer bid){
		return scriptBannerDAO.delete(bid);
	}
}
